home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Perl Multimedia Cyber Classroom
/
PERL Multimedia Cyber Classroom (Prentice Hall)(1998).ISO
/
perlbyex
/
code.jar
/
07ex004.jar
/
code
/
ch07
/
07ex004
/
07ex004.pl
next >
Wrap
Perl Script
|
1998-04-01
|
212b
|
9 lines
#! /usr/bin/perl
# example of ARGV, the $. variable, and closing the filehandle
#
while(<ARGV>) {
print "The file being processed is $ARGV.\n" if $. == 1;
print "$.\t$_";
close ARGV if eof;
}